using System;
using System.Collections.Generic;
using System.Text;
using FluentNHibernate.Mapping;
using Water.Model;

namespace Water.Data.Repositories.Mappings
{


    public class FlushWaterAccountMap : ClassMap<FlushWaterAccount>
    {

        public FlushWaterAccountMap()
        {
            Table("Tbt_FlushWaterAccount");
            LazyLoad();
            Id(x => x.MRNO).GeneratedBy.Assigned().Column("MRNO");
            Map(x => x.EpcNo).Column("EpcNO").Not.Nullable();
            References<Pipeline>(x => x.Pl, "EpcNO").PropertyRef(e => e.EpcNO).ReadOnly();
            Map(x => x.FlushDt).Column("FlushDt").Not.Nullable();
            Map(x => x.FlushLen).Column("FlushLen").Not.Nullable();
            Map(x => x.FlushLF).Column("FlushLF").Not.Nullable();
            Map(x => x.FlushEmp).Column("FlushEmp").Not.Nullable();
            Map(x => x.Memo).Column("Memo");
            Map(x => x.CreateDt).Column("CreateDt").ReadOnly();
        }
    }
}
